<extend name="Public:base" />
<block name="main">
	<div class="content">
		<section class="location">
			<i class="iconfont">&#xe60f</i> 位置：<a href="{:U('Index/main')}">管理首页</a> &gt; <a href="{:U('index',array('category_id' => $categoryInfo[id]))}">{$categoryInfo.name}</a>
		</section>
		<ul class="nav-tabs clearfix">
			<li class="active">产品管理</li>
			<li><a href="{:U('add',array('category_id' => $categoryInfo[id]))}">发布产品</a></li>
		</ul>
		<form method="get" action="" id="form" class="well">
			<input type="hidden" name="p" value="1" />
			关键字 <input type="text" name="keyword" class="form-control form-control-md" value="{$post_keyword}" placeholder="请输入关键字..."> 
			<button type="submit" class="btn btn-theme" id="submit_search">搜 索</button>
		</form>
		<form method="post" name="list">
			<input type="hidden" name="class" id="class" value="{$Think.CONTROLLER_NAME}" />
			<input type="hidden" name="model_id" id="model_id" value="3" />
			<input type="hidden" name="category_id" id="category_id" value="{$category_id}" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-hover">
				<thead>
					<tr>
						<th width="20"><input type="checkbox" name="chkAll" id="chkAll" onClick="ChkAllClick('id[]','chkAll')" /></th>
						<th width="20">ID</th>
						<th>产品名称</th>
						<th width="150">发布时间</th>
						<th width="150">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="viewList" id="data" empty="暂时没有数据">
					<tr>
						<td><input type="checkbox" name="id[]" id="chkSon{$data.id}" value="{$data.id}" onclick="ChkSonClick('id[]','chkAll')" /></td>
						<td>{$data.id}</td>
						<td><a href="{:U('edit',array('category_id'=>$data[category_id],'id'=>$data[id]))}">{$data.title}</a><eq name="data.is_index" value="1"> <span class="red">[推荐]</span></eq></td>
						<td>{$data.add_time}</td>
						<td><a href="{:U('edit',array('category_id'=>$data[category_id],'id'=>$data[id]))}">编辑</a> | <a href="javascript:;" data-id="{$data[id]}" data-url="__URL__" class="delete">删除</a></td>
					</tr>
					</volist>
				</tbody>
			</table>
			<button type="submit" class="btn btn-theme" id="sumbit_delete">选中删除</button>
			<div class="pages">{$pages}</div>
		</form>
	</div>
</block>